
import { PrismaClient } from '@prisma/client'
import { hash } from 'argon2';
import _ from 'lodash';

const prisma = new PrismaClient()

async function run() {
  await prisma.adminUser.create({
    data: {
      userName: 'admin',
      password: await hash('Wns123456'),
      role: 'admin'
    }
  })
  await prisma.wxAppConfig.create({
    data: {
      configKey: 'myConfig',
      peerUseCoin: 20,
      maxBuyCount: 5,
      customerWxPic: '',
      customerWxStr: ''
    }
  })
}

run()